<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商家入驻平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="js/auth.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --secondary: #0ea5e9;
            --light: #f0f9ff;
            --dark: #1e293b;
            --success: #10b981;
            --gray: #64748b;
            --light-gray: #e2e8f0;
        }

        body {
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 头部样式 */
        header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 30px 0;
            position: relative;
            overflow: hidden;
        }

        .header-content {
            position: relative;
            z-index: 2;
            text-align: center;
            padding: 40px 0;
        }

        .logo {
            font-size: 2.8rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

        .logo i {
            margin-right: 15px;
            background: white;
            color: var(--primary);
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .tagline {
            font-size: 1.3rem;
            max-width: 800px;
            margin: 0 auto 30px;
            opacity: 0.9;
        }

        .cta-button {
            background: white;
            color: var(--primary);
            padding: 15px 40px;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            text-decoration: none;
            display: inline-block;
            margin-top: 20px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            background: var(--light);
        }

        .header-decoration {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.05;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="20" height="20" fill="white" /><rect x="40" y="40" width="15" height="15" fill="white" /><rect x="70" y="15" width="25" height="25" fill="white" /></svg>');
        }

        /* 流程步骤 */
        .process-section {
            padding: 60px 0 40px;
            background: white;
        }

        .section-title {
            text-align: center;
            margin-bottom: 50px;
            color: var(--dark);
            position: relative;
            font-size: 2rem;
        }

        .section-title:after {
            content: "";
            display: block;
            width: 80px;
            height: 4px;
            background: var(--primary);
            margin: 15px auto;
            border-radius: 2px;
        }

        .process-steps {
            display: flex;
            justify-content: space-between;
            position: relative;
            margin-bottom: 60px;
            flex-wrap: wrap;
        }

        .process-steps::before {
            content: "";
            position: absolute;
            top: 40px;
            left: 10%;
            width: 80%;
            height: 3px;
            background: var(--light-gray);
            z-index: 1;
        }

        .step {
            position: relative;
            z-index: 2;
            text-align: center;
            flex: 1;
            min-width: 200px;
            padding: 0 15px;
            margin-bottom: 30px;
        }

        .step-icon {
            background: var(--primary);
            color: white;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 1.8rem;
            box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
        }

        .step-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--dark);
        }

        .step-desc {
            color: var(--gray);
            font-size: 0.95rem;
        }

        /* 优势展示 */
        .benefits-section {
            padding: 60px 0;
            background: var(--light);
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .benefit-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border-left: 4px solid var(--primary);
        }

        .benefit-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
        }

        .benefit-icon {
            background: var(--light);
            color: var(--primary);
            width: 60px;
            height: 60px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 20px;
        }

        .benefit-title {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .benefit-desc {
            color: var(--gray);
            line-height: 1.7;
        }

        /* 表单区域 */
        .form-section {
            padding: 60px 0;
            background: white;
        }

        .form-container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }

        .form-header {
            background: var(--primary);
            color: white;
            padding: 25px 30px;
        }

        .form-title {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }

        .form-subtitle {
            opacity: 0.9;
        }

        .form-body {
            padding: 30px;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-row {
            display: flex;
            gap: 20px;
            margin-bottom: 25px;
        }

        .form-row .form-group {
            flex: 1;
            margin-bottom: 0;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--dark);
        }

        .required::after {
            content: "*";
            color: #ef4444;
            margin-left: 4px;
        }

        input, select, textarea {
            width: 100%;
            padding: 14px;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
        }

        .form-hint {
            font-size: 0.85rem;
            color: var(--gray);
            margin-top: 6px;
        }

        .file-upload {
            border: 2px dashed var(--light-gray);
            border-radius: 8px;
            padding: 30px;
            text-align: center;
            background: #fafafa;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .file-upload:hover {
            border-color: var(--primary);
            background: var(--light);
        }

        .file-upload i {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .file-upload-text {
            font-weight: 500;
            margin-bottom: 10px;
            color: var(--dark);
        }

        .file-upload-desc {
            font-size: 0.9rem;
            color: var(--gray);
        }

        .submit-button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 16px 40px;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: block;
            width: 100%;
            margin-top: 20px;
        }

        .submit-button:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
        }

        /* 常见问题 */
        .faq-section {
            padding: 60px 0;
            background: var(--light);
        }

        .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-item {
            background: white;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }

        .faq-question {
            padding: 20px 25px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .faq-question i {
            transition: transform 0.3s ease;
        }

        .faq-answer {
            padding: 0 25px;
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s ease;
            color: var(--gray);
            line-height: 1.7;
        }

        .faq-item.active .faq-answer {
            padding: 0 25px 25px;
            max-height: 500px;
        }

        .faq-item.active .faq-question i {
            transform: rotate(180deg);
        }

        /* 页脚 */
        footer {
            background: var(--dark);
            color: #cbd5e1;
            padding: 60px 0 30px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            color: white;
            font-size: 1.3rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h3::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--primary);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
        }

        .footer-links a i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
            color: var(--primary);
        }

        .footer-links a:hover {
            color: white;
        }

        .contact-info p {
            margin-bottom: 12px;
            display: flex;
            align-items: center;
        }

        .contact-info i {
            margin-right: 10px;
            width: 20px;
            color: var(--primary);
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #334155;
            color: white;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid #334155;
            color: #94a3b8;
            font-size: 0.9rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .process-steps::before {
                display: none;
            }

            .process-steps {
                flex-direction: column;
                align-items: center;
            }

            .step {
                min-width: 100%;
            }

            .form-row {
                flex-direction: column;
                gap: 0;
            }
        }

        @media (max-width: 480px) {
            .logo {
                font-size: 2.2rem;
            }

            .logo i {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }

            .section-title {
                font-size: 1.7rem;
            }
        }
    </style>
</head>
<body data-require-login="true">
<!-- 头部区域 -->
<header>
    <div class="header-decoration"></div>
    <div class="container header-content">
        <div class="logo">
            <i class="fas fa-store"></i>
            商家入驻平台
        </div>
        <p class="tagline">加入我们，共享百万流量！专业电商平台助力您的业务增长</p>
        <a href="#apply-form" class="cta-button">立即申请入驻</a>
    </div>
</header>

<!-- 流程步骤 -->
<section class="process-section">
    <div class="container">
        <h2 class="section-title">入驻流程</h2>
        <div class="process-steps">
            <div class="step">
                <div class="step-icon">
                    <i class="fas fa-file-alt"></i>
                </div>
                <h3 class="step-title">填写申请</h3>
                <p class="step-desc">在线提交商家基本信息及资质文件</p>
            </div>

            <div class="step">
                <div class="step-icon">
                    <i class="fas fa-search"></i>
                </div>
                <h3 class="step-title">资质审核</h3>
                <p class="step-desc">1-3个工作日内完成资质审核</p>
            </div>

            <div class="step">
                <div class="step-icon">
                    <i class="fas fa-signature"></i>
                </div>
                <h3 class="step-title">签订协议</h3>
                <p class="step-desc">在线签订平台合作协议</p>
            </div>

            <div class="step">
                <div class="step-icon">
                    <i class="fas fa-store"></i>
                </div>
                <h3 class="step-title">开店营业</h3>
                <p class="step-desc">上架商品，开始销售</p>
            </div>
        </div>
    </div>
</section>

<!-- 优势展示 -->
<section class="benefits-section">
    <div class="container">
        <h2 class="section-title">平台优势</h2>
        <div class="benefits-grid">
            <div class="benefit-card">
                <div class="benefit-icon">
                    <i class="fas fa-users"></i>
                </div>
                <h3 class="benefit-title">海量用户</h3>
                <p class="benefit-desc">平台拥有超过5000万活跃用户，日均访问量超百万，为您的店铺带来稳定客流</p>
            </div>

            <div class="benefit-card">
                <div class="benefit-icon">
                    <i class="fas fa-tools"></i>
                </div>
                <h3 class="benefit-title">专业工具</h3>
                <p class="benefit-desc">提供全方位店铺管理工具，包括数据分析、营销推广、订单管理等，助您高效经营</p>
            </div>

            <div class="benefit-card">
                <div class="benefit-icon">
                    <i class="fas fa-bolt"></i>
                </div>
                <h3 class="benefit-title">快速结算</h3>
                <p class="benefit-desc">T+3快速结算周期，多种提现方式，资金周转更灵活，保障您的现金流</p>
            </div>

            <div class="benefit-card">
                <div class="benefit-icon">
                    <i class="fas fa-headset"></i>
                </div>
                <h3 class="benefit-title">专属服务</h3>
                <p class="benefit-desc">专业运营团队一对一指导，7×24小时客服支持，解决您经营中的任何问题</p>
            </div>
        </div>
    </div>
</section>

<!-- 表单区域 -->
<section id="apply-form" class="form-section">
    <div class="container">
        <h2 class="section-title">商家入驻申请</h2>
        <div class="form-container">
            <div class="form-header">
                <h3 class="form-title">基本信息</h3>
                <p class="form-subtitle">请填写真实信息，带<span style="color:#ef4444">*</span>为必填项</p>
            </div>

            <div class="form-body">
                <div class="form-row">
                    <div class="form-group">
                        <label for="company" class="required">公司名称</label>
                        <input type="text" id="company" placeholder="请输入营业执照上的公司全称">
                    </div>

                    <div class="form-group">
                        <label for="name" class="required">联系人姓名</label>
                        <input type="text" id="name" placeholder="请输入联系人姓名">
                    </div>
                </div>

                <div class="form-row">
                    <div class="form-group">
                        <label for="phone" class="required">联系电话</label>
                        <input type="tel" id="phone" placeholder="请输入联系人手机号码">
                    </div>

                    <div class="form-group">
                        <label for="email" class="required">电子邮箱</label>
                        <input type="email" id="email" placeholder="请输入常用电子邮箱">
                    </div>
                </div>

                <div class="form-group">
                    <label for="address" class="required">公司地址</label>
                    <input type="text" id="address" placeholder="请输入公司详细地址">
                </div>

                <div class="form-group">
                    <label for="business" class="required">主营业务</label>
                    <select id="business">
                        <option value="">请选择您的主营业务</option>
                        <option value="fashion">服装鞋包</option>
                        <option value="food">食品生鲜</option>
                        <option value="electronics">数码电子</option>
                        <option value="home">家居家装</option>
                        <option value="beauty">美妆个护</option>
                        <option value="other">其他</option>
                    </select>
                </div>

                <div class="form-group">
                    <label class="required">营业执照</label>
                    <div class="file-upload" id="license-upload">
                        <i class="fas fa-cloud-upload-alt"></i>
                        <div class="file-upload-text">点击上传营业执照</div>
                        <div class="file-upload-desc">支持JPG/PNG/PDF格式，文件大小不超过5MB</div>
                    </div>
                </div>

                <div class="form-group">
                    <label for="description">店铺描述</label>
                    <textarea id="description" rows="4" placeholder="请简要描述您的店铺特色和主营商品..."></textarea>
                    <p class="form-hint">此内容将显示在您的店铺首页，建议100-200字</p>
                </div>

                <button class="submit-button">提交申请</button>
            </div>
        </div>
    </div>
</section>

<!-- 常见问题 -->
<section class="faq-section">
    <div class="container">
        <h2 class="section-title">常见问题</h2>
        <div class="faq-container">
            <div class="faq-item">
                <div class="faq-question">
                    入驻需要哪些资质？
                    <i class="fas fa-chevron-down"></i>
                </div>
                <div class="faq-answer">
                    <p>需要提供：</p>
                    <ul style="padding-left:20px; margin-top:10px">
                        <li>营业执照（三证合一）</li>
                        <li>法人身份证正反面照片</li>
                        <li>银行开户许可证</li>
                        <li>品牌授权书（如经营品牌商品）</li>
                        <li>特殊行业需提供相关行业资质</li>
                    </ul>
                </div>
            </div>

            <div class="faq-item">
                <div class="faq-question">
                    审核需要多长时间？
                    <i class="fas fa-chevron-down"></i>
                </div>
                <div class="faq-answer">
                    <p>我们会在收到完整申请材料后的1-3个工作日内完成审核，审核结果将通过短信和邮件通知您。</p>
                </div>
            </div>

            <div class="faq-item">
                <div class="faq-question">
                    平台收取哪些费用？
                    <i class="fas fa-chevron-down"></i>
                </div>
                <div class="faq-answer">
                    <p>平台费用包括：</p>
                    <ul style="padding-left:20px; margin-top:10px">
                        <li>保证金：根据类目不同收取5,000-20,000元（合约期满可退还）</li>
                        <li>平台佣金：按实际成交额的3%-8%收取</li>
                        <li>支付手续费：0.6%</li>
                    </ul>
                </div>
            </div>

            <div class="faq-item">
                <div class="faq-question">
                    如何联系客服？
                    <i class="fas fa-chevron-down"></i>
                </div>
                <div class="faq-answer">
                    <p>您可以通过以下方式联系我们：</p>
                    <ul style="padding-left:20px; margin-top:10px">
                        <li>客服热线：400-888-9999（9:00-21:00）</li>
                        <li>在线客服：平台右下角"商家客服"入口</li>
                        <li>邮箱：merchant@platform.com</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- 页脚区域 -->
<footer>
    <div class="container">
        <div class="footer-grid">
            <div class="footer-column">
                <h3>商家服务</h3>
                <ul class="footer-links">
                    <li><a href="#"><i class="fas fa-angle-right"></i> 商家入驻</a></li>
                    <li><a href="#"><i class="fas fa-angle-right"></i> 商家后台</a></li>
                    <li><a href="#"><i class="fas fa-angle-right"></i> 规则中心</a></li>
                    <li><a href="#"><i class="fas fa-angle-right"></i> 商家培训</a></li>
                </ul>
            </div>

            <div class="footer-column">
                <h3>帮助中心</h3>
                <ul class="footer-links">
                    <li><a href="#"><i class="fas fa-angle-right"></i> 入驻指南</a></li>
                    <li><a href="#"><i class="fas fa-angle-right"></i> 费用说明</a></li>
                    <li><a href="#"><i class="fas fa-angle-right"></i> 运营教程</a></li>
                    <li><a href="#"><i class="fas fa-angle-right"></i> 常见问题</a></li>
                </ul>
            </div>

            <div class="footer-column">
                <h3>联系我们</h3>
                <div class="contact-info">
                    <p><i class="fas fa-map-marker-alt"></i> 北京市朝阳区科技园88号</p>
                    <p><i class="fas fa-phone"></i> 400-888-9999</p>
                    <p><i class="fas fa-envelope"></i> support@platform.com</p>
                    <p><i class="fas fa-clock"></i> 周一至周五: 9:00 - 18:00</p>
                </div>
                <div class="social-links">
                    <a href="#"><i class="fab fa-weixin"></i></a>
                    <a href="#"><i class="fab fa-weibo"></i></a>
                    <a href="#"><i class="fab fa-qq"></i></a>
                    <a href="#"><i class="fab fa-tiktok"></i></a>
                </div>
            </div>
        </div>
        <div class="copyright">
            <p>© 2023 商家入驻平台 版权所有 | 京ICP备12345678号-1</p>
        </div>
    </div>
</footer>

<script>
    // 常见问题交互
    const faqItems = document.querySelectorAll('.faq-item');

    faqItems.forEach(item => {
        const question = item.querySelector('.faq-question');

        question.addEventListener('click', () => {
            // 关闭其他展开的FAQ
            faqItems.forEach(otherItem => {
                if (otherItem !== item) {
                    otherItem.classList.remove('active');
                }
            });

            // 切换当前FAQ
            item.classList.toggle('active');
        });
    });

    // 文件上传交互
    const fileUpload = document.getElementById('license-upload');

    fileUpload.addEventListener('click', function() {
        // 创建虚拟文件输入
        const fileInput = document.createElement('input');
        fileInput.type = 'file';
        fileInput.accept = '.jpg,.jpeg,.png,.pdf';

        fileInput.onchange = function(e) {
            if (e.target.files.length > 0) {
                const fileName = e.target.files[0].name;
                fileUpload.innerHTML = `
                        <i class="fas fa-check-circle" style="color:#10b981"></i>
                        <div class="file-upload-text">${fileName}</div>
                        <div class="file-upload-desc">文件上传成功，点击可重新上传</div>
                    `;
            }
        };

        fileInput.click();
    });

    // 表单提交
    const submitButton = document.querySelector('.submit-button');

    submitButton.addEventListener('click', function() {
        // 简单验证
        let isValid = true;
        const requiredFields = document.querySelectorAll('input[required], select[required]');

        requiredFields.forEach(field => {
            if (!field.value.trim()) {
                isValid = false;
                field.style.borderColor = '#ef4444';
            } else {
                field.style.borderColor = '';
            }
        });

        if (isValid) {
            this.textContent = '提交中...';
            this.disabled = true;

            // 模拟提交
            setTimeout(() => {
                alert('申请提交成功！我们将在1-3个工作日内完成审核并通过邮件通知您结果。');
                this.textContent = '提交申请';
                this.disabled = false;
            }, 1500);
        } else {
            alert('请填写所有必填字段！');
        }
    });

    // 滚动到表单
    document.querySelector('.cta-button').addEventListener('click', function(e) {
        e.preventDefault();
        document.querySelector(this.getAttribute('href')).scrollIntoView({
            behavior: 'smooth'
        });
    });
</script>
</body>
</html>